build: Avoid xgettext crash on MSYS2
authorDaiki Ueno <dueno@src.gnome.org>
Thu, 23 Apr 2015 00:42:45 +0000 (09:42 +0900)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 27 Apr 2015 10:31:03 +0000 (06:31 -0400)
commitb10d63c085509bd7800493a85e7bf2df5eb1fe0a
treea9181554ff5aab9faea0b6545211ded860c103ea
parentb44afa1d486e6f1f017e0d149634e781c3706669
build: Avoid xgettext crash on MSYS2

isatty() on MSYS2 returns non-zero if the fd is stdout and is redirected
to /dev/null.  That lets xgettext to produce colorized output and leads
to an assertion failure during terminal type detection.

Although the problem should be fixed in MSYS2, isatty() could behave
wrongly in many ways on Windows.  Since gtk+ doesn't need colorized
output, it would be safer to bypass the terminal dependent code.

See also:
https://lists.gnu.org/archive/html/bug-gettext/2015-04/msg00004.html

https://bugzilla.gnome.org/show_bug.cgi?id=748346
configure.ac